package com.black.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.black.app.domain.AppUser;
import com.black.app.domain.req.my.MyUserPostEditReq;
import com.black.app.domain.req.my.MyUserPostInformationEditReq;
import com.black.app.domain.req.my.MyUserPostInformationReq;
import com.black.app.domain.resp.my.MyUserPostHomeResp;
import com.black.app.domain.resp.my.MyUserPostInformationResp;
import com.black.app.domain.resp.my.MyUserPostResp;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author tonneyyy
 * @description 针对表【app_user(手机端用户)】的数据库操作Service
 * @createDate 2024-09-28 15:01:49
 */
public interface AppUserService extends IService<AppUser> {

    /*
    根据手机号查询用户信息
     */
    AppUser findByPhone(String phone);

    PageInfo<MyUserPostInformationResp> postInformation(MyUserPostInformationReq req);

    boolean edit(MyUserPostInformationEditReq req);

    PageInfo<MyUserPostResp> post(MyUserPostInformationReq req);

    MyUserPostHomeResp postByUserId(Long userId);



    boolean revise(MyUserPostEditReq req);

//    MyUserPostResp postByid(Long id);

    MyUserPostInformationResp postInformationByUserId(Long userId);

    MyUserPostResp postByid(Long id);
}
